﻿<UserControl x:Class="P2.Cuberry.Modules.SimpleCRM.CROrganisation.CROrganisationsFindView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Margin="0" MinWidth="230" Width="Auto" MinHeight="230" Height="250">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>     
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </UserControl.Resources>

    <Grid Keyboard.KeyDown="Control_KeyDown">

        <Grid.Resources>
            <Image x:Key="FindIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleCRM.CROrganisation;component/Images/find16.gif" />
            <Image x:Key="ClearIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleCRM.CROrganisation;component/Images/clear.png" />
            <Image x:Key="AddIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.SimpleCRM.CROrganisation;component/Images/add.png" />
        </Grid.Resources>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="28"/>
            <RowDefinition Height="4" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="2" />
        </Grid.RowDefinitions>


        <Menu Grid.Column="0" Grid.Row="0" x:Name="menuMain" Height="25" VerticalAlignment="Top" Background="{DynamicResource MyBlueBackgroundGradientBrush}" >
            <MenuItem x:Name="btnCROrganisationFind" Margin="2,4,0,2"  Header="{Translate CROrganisationFind}" x:Uid="btnCROrganisationFind" Command="{Binding CROrganisationFindCommand}" Icon="{StaticResource FindIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>            
            <MenuItem x:Name="btnCROrganisationClr" Margin="2,4,0,2"  Header="{Translate CROrganisationClr}" x:Uid="btnCROrganisationClr" Command="{Binding CROrganisationClrCommand}"  Icon="{StaticResource ClearIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>            
            <MenuItem x:Name="btnCROrganisationAdd" Margin="2,4,0,2"   Header="{Translate CROrganisationAdd}" x:Uid="btnCROrganisationAdd" Command="{Binding CROrganisationAddCommand}"  Icon="{StaticResource AddIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>
        </Menu>
        
        <Label Grid.Row="2" Height="23" Margin="1,25,0,0" Name="OrganisationNameEnL"  VerticalAlignment="Top" HorizontalAlignment="Left" Width="119" Tag="SxL" Content="{Translate OrganisationNameEnL}"></Label>
        <TextBox Grid.Row="2" Height="23" Margin="126,25,12,0" Name="OrganisationNameEn"  Text="{Binding OrganisationNameEn}" VerticalAlignment="Top" Tag="SxText" Style="{StaticResource P2TextBoxStyle}" />
       
        <Label Grid.Row="2" Height="23" Margin="1,140,0,0" Name="StatusNameL" HorizontalAlignment="Left" Width="86" Tag="SxL" VerticalAlignment="Top"  Content="{Translate StatusNameL}"></Label>
        <ComboBox Grid.Row="2" Height="23" Margin="126,0,12,53" Name="StatusID" VerticalAlignment="Bottom" 
                  SelectedValuePath="StatusID" DisplayMemberPath="StatusNameCur" ItemsSource="{Binding WorkflowStatusses}"
                  SelectedValue="{Binding StatusID}" Style="{StaticResource P2ComboBoxStyle}" />
        <!--    //2010-04-11 JV: WF -->
        <Label Content="{Translate OrganisationTypeIDL}" Height="28" HorizontalAlignment="Left" Margin="0,54,0,0" Name="OrganisationTypeIDL" VerticalAlignment="Top" Width="120" Grid.Row="2" />
        <ComboBox DisplayMemberPath="OrganisationTypeNameCur" Grid.Row="2" Height="23.723" ItemsSource="{Binding OrganisationTypes}" Margin="126,56,12,0" Name="OrganisationTypeID" SelectedValue="{Binding OrganisationTypeID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" SelectedValuePath="OrganisationTypeID" Style="{StaticResource P2ComboBoxStyle}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" VerticalAlignment="Top" />
        
        <Label Content="{Translate CountryIDL}" Margin="1,88,0,101" Name="CountryIDL" Grid.Row="2" HorizontalAlignment="Left" Width="106.47" />
        <ComboBox DisplayMemberPath="CountryNameCur" Grid.Row="2"  ItemsSource="{Binding Countries}" Margin="126,88,12,105" Name="CountryID" SelectedValue="{Binding CountryID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" SelectedValuePath="CountryID" Style="{StaticResource P2ComboBoxStyle}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}" />
    </Grid>
</UserControl>
